package com.ant.storage.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("allocation")
@ApiModel(value="调拨申请对象")
public class Allocation {

    @TableId(value = "allocation_id", type = IdType.AUTO)
    private Integer allocation_id;

    @ApiModelProperty(value = "审批id")
    @TableField("process_instance_id")
    private String process_instance_id;

    @ApiModelProperty(value = "供货部门所在城市")
    @TableField("allocation_supply_city_id")
    private Integer allocation_supply_city_id;

    @ApiModelProperty(value = "供货部门")
    @TableField("allocation_supply_dept_id")
    private Integer allocation_supply_dept_id;



    @ApiModelProperty(value = "提货部门所在城市")
    @TableField("allocation_extract_city_id")
    private Integer allocation_extract_city_id;

    @ApiModelProperty(value = "提货部门")
    @TableField("allocation_extract_dept_id")
    private Integer allocation_extract_dept_id;

    @ApiModelProperty(value = "调拨申请时间")
    @TableField("allocation_time")
    private String allocation_time;

    @ApiModelProperty(value = "调拨申请人")
    @TableField("staff_name")
    private String staff_name;

    @ApiModelProperty(value = "调拨申请人电话")
    @TableField("staff_phone")
    private Long staff_phone;

    @TableField(exist = false)
    @ApiModelProperty(value = "调拨申请人userid")
    private String staff_userid;

    @TableField(exist = false)
    @ApiModelProperty(value = "调拨申请人部门ID")
    private Integer staff_dept_id;

    @ApiModelProperty(value = "审批人")
    @TableField("approver_name")
    private String approver_name;

    @ApiModelProperty(value = "审批人电话")
    @TableField("approver_phone")
    private Long approver_phone;

    @TableField(exist = false)
    @ApiModelProperty(value = "审批人userid")
    private String approver_userid;

    @ApiModelProperty(value = "抄送人")
    @TableField("cc_list_name")
    private String cc_list_name;

    @ApiModelProperty(value = "抄送人电话")
    @TableField("cc_list_phone")
    private Long cc_list_phone;

    @TableField(exist = false)
    @ApiModelProperty(value = "抄送人userid")
    private String cc_list_userid;

    @ApiModelProperty(value = "备注")
    @TableField("allocation_remarks")
    private String allocation_remarks;

    @ApiModelProperty(value = "状态：1 未提报：2 审核中：3 审核通过：4 审核拒绝 ；5  审核撤销")
    @TableField("allocation_type")
    private String allocation_type;

    @TableField(exist = false)
    @ApiModelProperty(value = "商品")
    private List<AllocationAndCommodity> allocationAndCommodity;

    @TableField(exist = false)
    private City supply_city;

    @TableField(exist = false)
    private City supply_dept;

    @TableField(exist = false)
    private City extract_city;

    @TableField(exist = false)
    private City extract_dept;

    @TableField(exist = false)
    @ApiModelProperty(value = "开始时间")
    private String start_time;

    @TableField(exist = false)
    @ApiModelProperty(value = "结束时间")
    private String end_time;
}
